package cn.datawin.common.state.action;

import cn.datawin.common.state.entity.BaseBasket;
import org.squirrelframework.foundation.fsm.UntypedAnonymousAction;
import org.squirrelframework.foundation.fsm.UntypedStateMachine;

/**
 * Created by hyygavin on 2019/3/28.
 */
public class LocalBackAction extends UntypedAnonymousAction {

    @Override
    public void execute(Object ruleFrom, Object ruleTo, Object event, Object context, UntypedStateMachine stateMachine) {
        BaseBasket basket  = (BaseBasket) context;
        stateMachine.fire(basket.getLocalBackEvent(),basket);
    }
}
